import service from '@/utils/request'

// @Tags WorkingProcedureNumberSetting
// @Summary 创建工艺配件编号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.WorkingProcedureNumberSetting true "创建工艺配件编号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /workingProcedureNumberSetting/createWorkingProcedureNumberSetting [post]
export const createWorkingProcedureNumberSetting = (data) => {
  return service({
    url: '/workingProcedureNumberSetting/createWorkingProcedureNumberSetting',
    method: 'post',
    data
  })
}

// @Tags WorkingProcedureNumberSetting
// @Summary 删除工艺配件编号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.WorkingProcedureNumberSetting true "删除工艺配件编号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /workingProcedureNumberSetting/deleteWorkingProcedureNumberSetting [delete]
export const deleteWorkingProcedureNumberSetting = (params) => {
  return service({
    url: '/workingProcedureNumberSetting/deleteWorkingProcedureNumberSetting',
    method: 'delete',
    params
  })
}

// @Tags WorkingProcedureNumberSetting
// @Summary 批量删除工艺配件编号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除工艺配件编号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /workingProcedureNumberSetting/deleteWorkingProcedureNumberSetting [delete]
export const deleteWorkingProcedureNumberSettingByIds = (params) => {
  return service({
    url: '/workingProcedureNumberSetting/deleteWorkingProcedureNumberSettingByIds',
    method: 'delete',
    params
  })
}

// @Tags WorkingProcedureNumberSetting
// @Summary 更新工艺配件编号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.WorkingProcedureNumberSetting true "更新工艺配件编号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /workingProcedureNumberSetting/updateWorkingProcedureNumberSetting [put]
export const updateWorkingProcedureNumberSetting = (data) => {
  return service({
    url: '/workingProcedureNumberSetting/updateWorkingProcedureNumberSetting',
    method: 'put',
    data
  })
}

// @Tags WorkingProcedureNumberSetting
// @Summary 用id查询工艺配件编号配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.WorkingProcedureNumberSetting true "用id查询工艺配件编号配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /workingProcedureNumberSetting/findWorkingProcedureNumberSetting [get]
export const findWorkingProcedureNumberSetting = (params) => {
  return service({
    url: '/workingProcedureNumberSetting/findWorkingProcedureNumberSetting',
    method: 'get',
    params
  })
}

// @Tags WorkingProcedureNumberSetting
// @Summary 分页获取工艺配件编号配置列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取工艺配件编号配置列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /workingProcedureNumberSetting/getWorkingProcedureNumberSettingList [get]
export const getWorkingProcedureNumberSettingList = (params) => {
  return service({
    url: '/workingProcedureNumberSetting/getWorkingProcedureNumberSettingList',
    method: 'get',
    params
  })
}
